
package com.abcijkxyz.domain.extrathyme;

import java.util.Calendar;

public class Headline implements Comparable<Headline> {

	private final Calendar	date;
	private final String	text;

	public Headline(final Calendar date, final String text) {
		super();
		this.date = date;
		this.text = text;
	}

	public Calendar getDate() {
		return this.date;
	}

	public String getText() {
		return this.text;
	}

	public int compareTo(final Headline o) {
		if (o == null) {
			return 1;
		}
		return this.date.compareTo(o.date);
	}

}
